package com.business.service;

import java.util.List;

import org.apache.poi.hssf.usermodel.HSSFWorkbook;
import org.springframework.web.multipart.MultipartFile;

import com.business.domain.Loan;
import com.business.domain.LoanInterest;
import com.sys.result.PageParam;
import com.sys.result.RequestPageVo;
import com.sys.result.RequestResultVo;

public interface LoanService {

	/**
	 * 分页查询车贷产品
	 */
	RequestPageVo<Loan> queryLoanList(PageParam param,String productName);
	/**
	 * 修改车贷产品
	 */
	RequestResultVo<Loan> updateLoan(Loan loan,MultipartFile contractFile);
	/**
	 * 添加车贷产品
	 */
	RequestResultVo<Loan> addLoan(Loan loan,MultipartFile contractFile);
	/**
	 * 删除车贷产品
	 */
	RequestResultVo<Loan> deleteLoan(Integer id);
	
	/**
	 * 根据id查询车贷产品
	 */
	RequestResultVo<Loan> queryLoanById(Integer id);
	
	/**
	 * 根据id 获取利率表
	 */
	RequestPageVo<LoanInterest> getInterest(Integer id);
	/**
	 * 
	 */
	RequestResultVo<LoanInterest> saveOrUpdateInterest(String json,Integer loanId);
	
	/**
	 * 查询所有车贷产品
	 */
	List<Loan> queryAllLoan();
	
	/**
	 * 
	 */
	HSSFWorkbook exportLoan();
}
